package com.toycloud.business.service;

import com.toycloud.business.domain.DemandConfig;
import com.toycloud.business.domain.dto.DemandConfigBrandDTO;
import com.toycloud.business.dto.params.*;
import com.toycloud.business.dto.results.CascaderLabelResult;
import com.toycloud.business.dto.results.CommonResult;
import com.toycloud.system.domain.dto.FeedbackLabelDTO;


import java.util.List;

/**
 * @author hlchan
 * @version 1.0
 * @date 2024/9/4 17:54
 */
public interface IDemandConfigService {
    CommonResult<List<DemandConfig>> getBaseConfig(FeedbackConfigTypeParams params);

    CommonResult<List<DemandConfig>> getUsedConfigList();

    CommonResult<List<DemandConfigBrandDTO>> getBrandConfig(FeedbackConfigPNameParams params);

    CommonResult addBaseConfig(FeedbackConfigParam param);

    CommonResult removeBaseConfig(FeedbackConfigIdParam param);

    CommonResult updateBaseConfig(FeedbackConfigUpadateParam param);


    CommonResult<List<FeedbackLabelDTO>> getFeedbackLabelList(FeedbackLabelParams params);

    CommonResult<Boolean> SaveFeedbackLabelParam(SaveFeedbackLabelParams param);

    CommonResult<CascaderLabelResult> getCascaderLabel();

    CommonResult<CascaderLabelResult> getCascader(String[] types);

    CommonResult<Boolean> deleteLabel(long id,int pid);



//    CascaderLabelTree generateCascaderLabel(List<FeedbackLabel> labelList);

}
